package com.dq.rbac.entity;

import java.util.ArrayList;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.dq.rbac.entity.parent.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * (SysMenu)实体类
 *
 * @author Dq
 * @since 2022-12-27 13:53:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysMenu extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -71922310972654222L;

    /**
    * 菜单名称
    */
    private String name;
    /**
    * 菜单图标
    */
    private String icon;
    /**
    * 父菜单ID
    */
    private Long parentId;
    /**
    * 显示顺序
    */
    private Integer orderNum;
    /**
    * 路由地址
    */
    private String path;
    /**
    * 组件路径
    */
    private String component;
    /**
    * 菜单类型（M目录 C菜单 F按钮）
    */
    private String menuType;
    /**
    * 权限标识
    */
    private String perms;

    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<>();


}